home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / ActiveEvent.java < prev    next >
Text File  |  1998-09-22  |  1KB  |  38 lines

  1. /*
  2.  * @(#)ActiveEvent.java    1.2 98/07/01
  3.  *
  4.  * Copyright 1995-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.awt.peer;
  16.  
  17. /**
  18.  * An interface for events that know how dispatch themselves.
  19.  * By implementing this interface an event can be placed upon the event 
  20.  * queue and this method will be called to dispatch the event.  This allows
  21.  * objects that are not components to arrange for behavior to occur on
  22.  * a different thread from the current thread. 
  23.  *
  24.  * Peer implementations can use this facility to avoid making upcalls 
  25.  * that could potentially cause a deadlock.
  26.  *
  27.  * @author  Timothy Prinzing
  28.  * @version 1.2 07/01/98
  29.  */
  30. public interface ActiveEvent {
  31.  
  32.     /**
  33.      * Dispatch the event to it's target, listeners of the events source, 
  34.      * or do whatever it is this event is supposed to do.
  35.      */
  36.     public void dispatch();
  37. }
  38.